package com.ys.entity.storage;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_OnlineAssembleError", catalog="Id")
public class TccOnlineAssembleError extends BaseEntity<TccOnlineAssembleError> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="AssembleId", nameJava="assembleId", typeDataBase="bigint")
	private Long assembleId;
	@YsField(nameDataBase="PurchaseOrderBid", nameJava="purchaseOrderBid", typeDataBase="varchar")
	private String purchaseOrderBid;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="HandleTime", nameJava="handleTime", typeDataBase="datetime")
	private Date handleTime;
	@YsField(nameDataBase="HandleStatus", nameJava="handleStatus", typeDataBase="tinyint")
	private Integer handleStatus;
	@YsField(nameDataBase="ErrorCause", nameJava="errorCause", typeDataBase="varchar")
	private String errorCause;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccOnlineAssembleError setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TccOnlineAssembleError setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public Long getAssembleId() {
		return assembleId;
	}
	public TccOnlineAssembleError setAssembleId(Long assembleId) {
		this.assembleId = assembleId;
		return this;
	}
	public String getPurchaseOrderBid() {
		return purchaseOrderBid;
	}
	public TccOnlineAssembleError setPurchaseOrderBid(String purchaseOrderBid) {
		this.purchaseOrderBid = purchaseOrderBid;
		return this;
	}
	public Date getHandleTime() {
		return handleTime;
	}
	public TccOnlineAssembleError setHandleTime(Date handleTime) {
		this.handleTime = handleTime;
		return this;
	}
	public Integer getHandleStatus() {
		return handleStatus;
	}
	public TccOnlineAssembleError setHandleStatus(Integer handleStatus) {
		this.handleStatus = handleStatus;
		return this;
	}
	public String getErrorCause() {
		return errorCause;
	}
	public TccOnlineAssembleError setErrorCause(String errorCause) {
		this.errorCause = errorCause;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccOnlineAssembleError setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccOnlineAssembleError setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccOnlineAssembleError setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccOnlineAssembleError tccOnlineAssembleError(
		String bid,
		Long assembleId,
		String purchaseOrderBid,
		Date handleTime,
		Integer handleStatus,
		String errorCause,
		Integer status
			) {
		TccOnlineAssembleError entity = new TccOnlineAssembleError();
		entity.setBid(bid);
		entity.setAssembleId(assembleId);
		entity.setPurchaseOrderBid(purchaseOrderBid);
		entity.setHandleTime(handleTime);
		entity.setHandleStatus(handleStatus);
		entity.setErrorCause(errorCause);
		entity.setStatus(status);
		return entity;
	}
}